import powerbtn from './powerbtn.js'

const install = function(Vue) {
  Vue.directive('powerbtn', powerbtn)
}

if (window.Vue) {
  window['powerbtn'] = powerbtn
  Vue.use(install); // eslint-disable-line
}

powerbtn.install = install
export default powerbtn
